<div class="content-l">
	<form action='<?= Controller::_makeURL('sms','index','send')?>' method="post" onsubmit="return send_sms(this);">
	<ul class="write-msg">
		<li class="send">
            <span>发送给：</span>
			<div class="write-box">
			<?
			$reciever = $this->reciever;
			if( ($n = strpos($this->reciever,','))!==false){
				$reciever = substr($this->reciever,0,$n);
			}
			?>
                <i:friend-list-box xmlns:i="178" id="reciever" name="reciever" <? if($reciever):?> default="<?=$reciever?>" <?endif;?> more-choice="true" title="选择好友" max="10" />
			</div>
            <div class="clearfix"></div>
		</li>
		<li class="title" style="display:none"><span>&nbsp;</span>
        <a class="add-title" onclick='$$(".title").each(function(v){v.toggle();})' href="javascript:;" target="_self">增加标题</a>	
        </li>
		<li class="title " ><span>标题：</span> <input name="title" id="title" type="text" value="<?=urldecode(_('title'))?>" class="input" />
        <a class="cancel-title" onclick='$("title").value="";$$(".title").each(function(v){ v.toggle();})' href="javascript:;" target="_self">取消标题</a>
        <div class="clearfix"></div>
        </li>
		<!--点击添加标题 显示标题 -->
		<li class="con"><span>内容：</span>
			<div class="con-box" style="float:left;"><div id="content_div" name="content_div" style="padding-left:50" ></div></div>
			<i:editor xmlns:i="178" div-id="content_div" id="content_editor">
   			<i:toolbar fontsize="false" face="true" bold="false" orderedList="false" italic="false" underline="false" left="false" center="false" right="false" font="false" color="false" link-img="false" link="false" uploadimg="false" toolbarbg="false" />
            <? if($this->forward): ?>
   			<i:content width="428" height="200"><?=addslashes(htmlspecialchars(preg_replace('`\r\n|\n`', '<br />', $this->msg['sms_content']))) ?></i:content>
			<? else:?>
			<i:content width="428" height="200"><?=addslashes(htmlspecialchars($this->content)) ?></i:content>
            <? endif;?>
            </i:editor>	
           <div class="clearfix"></div>
		</li>
		<? if($this->_needVcode):?>
		<li class="check-code">
		<span>验证码：</span>
		<script type="text/javascript">
			var vcode = new Vcode('vcode', 'vcode');
			vcode.write();
		</script>
		</li>
		<?endif;?>
		
		<input type="hidden" id="content" name="content" value="" />
		<li class="btn"> <i:button xmlns:i="178" id="btn1" onclick="$('content').value = content_editor.getHtml();" type="button" style="yes" btype="submit" label="发送" /></li>
	</ul>
    </form>
</div><!--content-l -->

